clc
clear

global U L A3 B3 MAINT_COST REPAIR_COST SHAPE2 SCALE2 SHAPE1 SCALE1

init_global8

max_cycles=100;

% Exaustive enumeration through for loop

for cycle=1:max_cycles
    cost(cycle)=risk_neutral_eval(cycle);
    time(cycle)=cycle;
end

[min_cost,threshold]=min(cost)


plot(time,cost,'g*-')
xlabel('Time since last repair or maintenance');
ylabel('Objective Function');
